<template>
  <div>
    <div>
      搜索框：<input type="text" :value="modelValue" @input="emit('update:modelValue',(<HTMLInputElement>$event.target).value)">
    </div>

    <div>
      账号：<input type="text" :value="zhanghao" @input="emit('update:zhanghao',(<HTMLInputElement>$event.target).value)">
    </div>
    <div>
      密码：<input type="text" :value="mima" @input="emit('update:mima',(<HTMLInputElement>$event.target).value)">
    </div>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
let props = defineProps(['modelValue', 'zhanghao', 'mima'])
let emit = defineEmits(['update:modelValue', 'update:zhanghao', 'update:mima' ])
</script>

<style lang="scss" scoped>
input {
  border: 2px solid #000;
  background: linear-gradient(45deg, red, yellow, green);
  color: #fff;
}
</style>